package com.ruoyi.door.domain;

import com.easy.query.core.annotation.Column;
import com.easy.query.core.annotation.EntityProxy;
import com.easy.query.core.annotation.Table;
import com.easy.query.core.proxy.ProxyEntityAvailable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.door.domain.proxy.DoorOrderDetailProxy;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldNameConstants;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@Data
@Table("door_order_detail")
@ApiModel(value = "订单详情", description = "订单详情")
@EntityProxy
@AllArgsConstructor
@NoArgsConstructor
@FieldNameConstants
public class DoorOrderDetail implements Serializable, ProxyEntityAvailable<DoorOrderDetail , DoorOrderDetailProxy> {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Column(primaryKey = true,generatedKey  = true)
    @ApiModelProperty("主键")
    private Long id;

    /**
     * 订单类型;1=运维费;2=安装费;3=人脸;4=运维+安装
     */
    private Long type;
    /**
     * 订单id
     */
    @Excel(name = "订单id")
    @ApiModelProperty("订单id")
    private Long orderId;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    @ApiModelProperty("姓名")
    private String name;

    /**
     * 手机号
     */
    @Excel(name = "手机号")
    @ApiModelProperty("手机号")
    private String phone;

    /**
     * 国家
     */
    @Excel(name = "国家")
    @ApiModelProperty("国家")
    private Long country;

    /**
     * 省
     */
    @Excel(name = "省")
    @ApiModelProperty("省")
    private Long province;

    /**
     * 市
     */
    @Excel(name = "市")
    @ApiModelProperty("市")
    private Long city;

    /**
     * 区
     */
    @Excel(name = "区")
    @ApiModelProperty("区")
    private Long district;

    /**
     * 街道
     */
    @Excel(name = "街道")
    @ApiModelProperty("街道")
    private Long street;

    /**
     * 村
     */
    @Excel(name = "村")
    @ApiModelProperty("村")
    private Long village;


    @Excel(name = "部门")
    @ApiModelProperty("部门id")
    private Long deptId;

    /**
     * 详细地址
     */
    @Excel(name = "详细地址")
    @ApiModelProperty("详细地址")
    private String address;

    /**
     * 门牌
     */
    @Excel(name = "门牌")
    @ApiModelProperty("门牌")
    private String door;

    @ApiModelProperty("创建时间")
    private Date createTime;

    private Long houseId;

    private Long userId;


    /**
     * 数量
     */
    @Excel(name = "数量")
    @ApiModelProperty("数量")
    private Long buyCount;

    /**
     * 套餐
     */
    @Excel(name = "方案")
    @ApiModelProperty("方案")
    private BigDecimal unitPrice;

    /**
     * 工程金额
     */
    private BigDecimal projectPrice;

    private Long planId;

    /**
     * 总价
     */
    @Excel(name = "总价")
    @ApiModelProperty("总价")
    private BigDecimal totalPrice;

    /**
     * 是否为公安  如果选择是 套餐没有了 只有工程金额
     */
    @ApiModelProperty("是否为公安")
    private String isPolice;


    private String remark;

}
